package com.ruoyi.edu.service;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.edu.domain.EduComment;
import com.ruoyi.edu.domain.vo.EduCommentVo;
import com.ruoyi.edu.domain.bo.EduCommentBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.Collection;
import java.util.List;

/**
 * 评论Service接口
 *
 * @author ruoyi
 * @date 2022-08-22
 */
public interface IEduCommentService {

    /**
     * 查询评论
     */
    EduCommentVo queryById(String id);

    /**
     * 查询评论列表
     */
    TableDataInfo<EduCommentVo> queryPageList(EduCommentBo bo, PageQuery pageQuery);

    /**
     * 查询评论列表
     */
    List<EduCommentVo> queryList(EduCommentBo bo);

    /**
     * 新增评论
     */
    Boolean insertByBo(EduCommentBo bo) throws Exception;

    /**
     * 修改评论
     */
    Boolean updateByBo(EduCommentBo bo);

    /**
     * 校验并批量删除评论信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

//    TableDataInfo<EduCommentVo> getCommentPageByid(PageQuery pageQuery,String courseId);
}
